<!DOCTYPE html>
<html>
<head>
    <title>Hello WebSocket</title>
    <meta charset="utf-8"/>
    <link href="bootstrap.min.css" rel="stylesheet">
    <link href="main.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/sockjs-client/1.4.0/sockjs.min.js"></script>
    <script src="https://cdn.bootcss.com/stomp.js/2.3.3/stomp.min.js"></script>
    <!--    <script src="/webjars/jquery/jquery.min.js"></script>-->
    <!--    <script src="/webjars/sockjs-client/sockjs.min.js"></script>-->
    <!--    <script src="/webjars/stomp-websocket/stomp.min.js"></script>-->
    <script src="app.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<noscript><h2 style="color: #ff0000">Seems your browser doesn't support Javascript! Websocket relies on Javascript being
    enabled. Please enable
    Javascript and reload this page!</h2></noscript>
<div id="main-content" class="container">
    <div class="row">
        <div class="col-md-6">
            <form class="form-inline">
                <div class="form-group">
                    <label for="connect">WebSocket connection:</label>
                    <button id="connect" class="btn btn-default" type="submit">Connect</button>
                    <button id="disconnect" class="btn btn-default" type="submit" disabled="disabled">Disconnect
                    </button>
                </div>
            </form>
        </div>
        <div class="col-md-6">
            <form class="form-inline">
                <div class="form-group">
                    <div class="form-group">
                        <label for="name">name:</label>
                        <label id="name" placeholder="Your name here..."></label>
                    </div>
                    <div class="form-group">
                        <label for="room">房间号:</label>
                        <input type="text" id="room" class="form-control" placeholder="To Everyone" value="1">
                    </div>
                    <div class="form-group">
                        <label for="content">对谁:</label>
                        <input type="text" id="toUser" class="form-control" placeholder="To Everyone" value="">
                    </div>
                    <div class="form-group">
                        <label for="content">说什么:</label>
                        <input type="text" id="content" class="form-control" placeholder="say something" value="测试你好啊">
                        <button id="send" class="btn btn-default" type="submit">Send</button>
                        <!--                <button id="send-broadcast" class="btn btn-default" type="submit">Send</button>-->
                        <button id="clean" class="btn btn-default" type="button">Clean</button>
                    </div>
<!--                    <div class="form-group">-->
<!--                        <button id="btn_removeMsg" class="btn btn-default" type="submit">撤回消息</button>-->
<!--                        <input id="removeMsg" type="text"  class="form-control" placeholder="消息ID" value="">-->
<!--                    </div>-->
                </div>
                <div class="form-group">
                    <button id="silent" class="btn btn-default" type="button">禁言个人</button>
                    <button id="unsilent" class="btn btn-default" type="button">解禁个人</button>
                    <input type="text" id="silent_toUser" class="form-control" placeholder="User_id" value="">
                </div>
                <div class="form-group">
                    <button id="silentAll" class="btn btn-default" type="button">全员禁言</button>
                    <button id="unsilentAll" class="btn btn-default" type="button">全员解禁</button>
                </div>
            </form>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <table id="conversation" class="table table-striped">
                <thead>
                <tr>
                    <th>Greetings</th>
                </tr>
                </thead>
                <tbody id="greetings">
                </tbody>
            </table>
        </div>
    </div>
</div>
</body>
</html>
